package shared;

import java.util.ArrayList;

public class PersonList<E> extends ArrayList<E>
{
	private static final long serialVersionUID = 8691446898972311412L;

	public PersonList()	{}

	/**
	 * Only for Friend class type
	 * @param id - id of friend to get
	 * @return
	 */
	public E get(String id) 
    {
        for(E f : this)
        {        	
        	if(((Friend)f).getId().equals(id))
        		return f;
        }
		return null;
    }

}
